<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
   	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
	<title>管理</title>
    <link href="<%=request.getContextPath() %>/css/bootstrap.css" rel="stylesheet" type="text/css">
    <script src="<%=request.getContextPath() %>/js/jquery-2.0.3.min.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/bootstrap.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/jquery.twbsPagination.js" type="text/javascript"></script>   
    <script type="text/javascript">
    $(document).ready(function () {
	    $('#pagination-demo').twbsPagination({	    	
	        totalPages: ${pageCount},
	        visiblePages: ${pageCount}>10?10:${pageCount},
			startPage:${page},
			endPage:${page}+5,
	        version: '1.1',
	        first: "首页",
	        last: "未页",
	        prev: '上一页',
	        next: '下一页',
	        onPageClick: function (event, page) {	        	
	        	if(page!=${page}){
					location.href="product_num_check_getPagedCategoryProductNum.action?page="+ page +"&rows=10";
	        	}	        	
	        }
	    });
    });
    
    </script>
    <section id="main-content">
		    <p>
		        <div class="text-center" display="inline">
		            <ul id="pagination-demo" class="pagination-sm">&nbsp;&nbsp;&nbsp;共${pageCount}页,共${recordsCount}条记录</ul>
		        </div>
		    </p>
		</section>
  
  </body>
  
</html>
